From: Florian Müllner Date: Wed, 22 Aug 2012 13:42:27 +0000 (+0200) Subject: appMenu: Make show() a no-op in locked state X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~6070 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=88effdd9c36d44973035449ca2417e37df1b8d9c;p=gnome-shell.git appMenu: Make show() a no-op in locked state The app menu is hidden when entering the lock screen, however it might be shown again while the lock is still in place - we don't want this ever to be the case, so make show() a no-op while the screen is locked. https://bugzilla.gnome.org/show_bug.cgi?id=682475 --- diff --git a/js/ui/panel.js b/js/ui/panel.js index d9cf5983c..943079f2d 100644 --- a/js/ui/panel.js +++ b/js/ui/panel.js @@ -285,7 +285,7 @@ const AppMenuButton = new Lang.Class({ }, show: function() { - if (this._visible) + if (this._visible || Main.screenShield.locked) return; this._visible = true;